<template>
  <div>
    <el-row>
      <el-col :span="24">
        <el-form :inline="true" class="demo-form-inline">
          <el-form-item>
            <el-input
              size="medium"
              v-model="queryStr"
              placeholder="查询"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-button size="small" type="primary" icon="el-icon-search"
              >查询</el-button
            >
          </el-form-item>
          <el-form-item>
            <el-button
              size="small"
              @click="newest(1)"
              type="primary"
              icon="el-icon-circle-plus-outline"
              >新增</el-button
            >
          </el-form-item>
        </el-form>
      </el-col>
      <el-col :span="24">
        <div>
          <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="date" label="顾客名称" width="">
            </el-table-column>

            <el-table-column prop="date1" label="手机号" width="">
            </el-table-column>
            <el-table-column prop="name" label="调查时间段" width="">
            </el-table-column>
            <el-table-column prop="address" label="调查人"> </el-table-column>
            <el-table-column prop="address1" label="合计(分)">
            </el-table-column>
            <el-table-column prop="address2" label="建议或意见">
            </el-table-column>
            <el-table-column label="操作" width="180" align="center">
              <template #default="scope">
                <el-button
                  size="mini"
                  @click="handleEdit(scope.$index, scope.row)"
                  >编辑</el-button
                >
                <el-button
                  size="mini"
                  type="danger"
                  @click="handleDelete(scope.$index, scope.row)"
                  >删除</el-button
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
      </el-col>
    </el-row>
    <el-dialog title="满意度调查表" v-model="plassets" width="50%">
      <gation></gation>
    </el-dialog>
  </div>
</template>

<script>
import gation from "./gation.vue";
export default {
  components: {
    gation,
  },
  data() {
    return {
      queryStr: "",
      plassets: false,
      tableData: [
        {
          date: "张三",
          name: "2021/6/1",
          date1: "1234566666",
          address: "xxxx",
          address1: "80",
          address2: "xxxxxxx",
        },
      ],
    };
  },
  methods: {
    newest() {
      this.plassets = true;
    },
  },
};
</script>

<style scoped>
.addccc {
  margin-bottom: 20px;
}
</style>